package com.imist.PipelineAndChannelHandler.server.handler.inbound;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;

public class InBoundHandlerC extends ChannelInboundHandlerAdapter {

    @Override
    public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
        System.out.println("InBoundHandlerC : "+msg);
        // 只有调用了ctx.channel().writeAndFlush(msg); 才会调用outbound
        ctx.channel().writeAndFlush(msg);
        //super.channelRead(ctx, msg);
    }
}
